package com.xing.Role.Entity;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * @author xingxing
 *
 */
@Entity
@Table(name="T_Role")
public class Role implements Serializable {
	/**
	 * 序列化 随机生成 作为标识存在，用来在缓存中找回
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name="rid",nullable=false)
	private String rid;
	@Column
	private String rname;
	@Column
	private String rdescribe;
	@Column
	private String fid;
	public String getRid() {
		return rid;
	}
	public void setRid(String rid) {
		this.rid = rid;
	}
	public String getRname() {
		return rname;
	}
	public void setRname(String rname) {
		this.rname = rname;
	}
	public String getRdescribe() {
		return rdescribe;
	}
	public void setRdescribe(String rdescribe) {
		this.rdescribe = rdescribe;
	}
	public String getFid() {
		return fid;
	}
	public void setFid(String fid) {
		this.fid = fid;
	}
	
	
}
